package com.itheima.reggie.common;

public class BaseContext {
    private static ThreadLocal<Long> ThreadLocal = new ThreadLocal<>();
    public static void setCurrentId(Long id){
        ThreadLocal.set(id);
    }

    public static Long getCurrentId(){
        return ThreadLocal.get();
    }
}
